<script>
	export default {
		onLaunch: function() {
			/* 5+环境锁定屏幕方向 竖屏*/
			plus.screen.lockOrientation('portrait-primary');
			console.log('App Launch')
			let loginToken = uni.getStorageSync('token')
				if(!loginToken) {
					uni.redirectTo({
						url:'pages/register/login'
					})
					return
				}
		},
		onShow: function() {
			console.log('App Show')
		},
		onHide: function() {
			console.log('App Hide')
		}
	}
</script>

<style>
	/*每个页面公共css */
</style>
